
package com.easy.mapper;

import com.easy.bean.Department;
import com.easy.bean.Employee;
import com.easy.util.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface EmployeeDao{
    int add(@Param("param") Employee employee);
    int del(@Param("id") Integer id);
    int edit(@Param("param") Employee employee);
    Employee one(@Param("id") Integer id);
    List<Employee> all(
            @Param("name") String name,
            @Param("phone") String phone
    );
    int pageCount(@Param("param")Employee employee);
    List<Employee> page(@Param("page") Page page, @Param("param") Employee employee);
}
